<?php
  /**
   * @author EVANDRO DE OLIVEIRA.
   * @category VIEW
   * @package VIEWS/SCRIPTS/ERROR.
   * @since 17/03/2012.
   * @last_update 24/03/2012.
   * @copyright 2012.
   * @version 1.0.
   *
   */
?>
<style>
  .table-error{
    width: 70%;
    margin-top: 20px;
    border: #CCCCCC solid 1px;
    margin-bottom: 20px;
    vertical-align: top;
  }
  .set-title{
    background: #CCCCCC;
    color:#F9F9F9;
    padding-left: 20px;
    padding-top:10px;
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: #333 solid 1px;
  }
  
  .set-message{
    height: 30px;
    padding-left: 20px;
    font-size: 16px;
    border-bottom: #333 solid 1px;
  }
  
  .set-info{
    padding-left: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
  }
  
  .set-details{
    background: #F5F5F5;
    border-top: #333 solid 1px;
    padding-left: 20px;
    padding-top: 10px;
  }
  
  pre{
    font-size: 12px;
  }
</style>
<table cellpadding="0" cellspacing="0" border="0" align="center" class="table-error">
  <tr>
    <td class="set-title">Ops! Ocorreu um Erro.</td>
  </tr>
  
  <tr>
    <td class="set-message"><?php echo $this->message ?></td>
  </tr>
  
  <?php 
    if(isset($this->exception)){
    	?>
      <tr>
        <td class="set-info"><b>Informações:</b></td>
      </tr> 
      
      <tr>
        <td class="set-info"><b>Mensagem:</b> <?php echo $this->exception->getMessage()?></td>
      </tr>
      
      <tr>
        <td class="set-details">
          <h3>Detalhes:</h3>
          <pre>
            <?php echo wordwrap($this->exception->getTraceAsString());?>
          </pre>
          <h3>Parâmetros:</h3>
          <pre>
            <?php echo var_export($this->request->getParams(), true) ?>
          </pre>
        </td>
      </tr>
      <?php 
    } 
  ?>    
</table>